import pandas as pd

import app


class ReadBaseExcel:

    def Read_excel(self,Road):
        path = app.base_path + r"{}".format(Road)
        # 读取excel文件
        data = pd.read_excel(path)
        # 将读取到的数据转换为列表格式
        Fromdata = data.to_dict(orient='records')
        return Fromdata

if __name__ == '__main__':
    # print(ReadBaseExcel('/dataSource/apptokenpath.xls').Read_excel('request'))
    print(ReadBaseExcel().Read_excel('/dataSource/test.xls'))